<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增岗位主数据')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">岗位名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="postName" placeholder="请输入岗位名称" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">备注：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="remark" placeholder="请输入备注">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">岗位状态：</label>
            <div class="col-sm-8">
                <div class="check-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
                    <input type="radio" name="status" th:value="${dict.dictValue}" th:checked="${dict.dictValue=='0'}"
                           th:text="${dict.dictLabel}">
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<script>
    var prefix = ctx + "post";

    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-post-add").serializeArray();
            $.operate.save(prefix + "/add", data);
        }
    }

</script>
</body>
</html>